﻿using EcoSystem.Enums;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace EcoSystem
{
    /// <summary>
    /// 添加或更新的DTO
    /// </summary>
    public class CreateOrUpdateConfigCategoryDto
    {
        /// <summary>
        /// 
        /// </summary>
        [Required]
        public string Id { get; set; }

        /// <summary>
        /// 配置分类名称
        /// </summary>
        [Required(ErrorMessage = "分类名称不能为空")]
        public string Name { get; set; }
 

        /// <summary>
        /// 配置级别 (1.全局，2.系统级，4.用户级)
        /// </summary>
        public ConfigLevel Level { get; set; }

        /// <summary>
        ///哪些系统可用
        /// </summary>
        public List<string> ModuleScope { get; set; }

        /// <summary>
        /// 配置方式 (1.界面配置 2.接口配置)
        /// </summary>
        public ConfigType ConfigType { get; set; }

        /// <summary>
        /// 用途 (1.前端 2.后端)
        /// </summary>
        public Usage Usage { get; set; }

        /// <summary>
        /// 启用状态
        /// </summary>
        public bool Status { get; set; }

        /// <summary>
        /// 配置字段定义列表
        /// </summary>
        public List<ConfigDefineDto> DefineFields { get; set; }

        /// <summary>
        /// 配置说明
        /// </summary>
        public string Remarks { get; set; }

    }
}
